<!DOCTYPE html>
<html>
<head>
<title><?php echo $title; ?></title>
<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/admin/css/reset.css" />
<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/common.css" />
<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/admin/css/style.css" />

<script src="<?php echo base_url(); ?>assets/js/jquery-1.7.1.min.js" type="text/javascript"></script>
</head>

<body>
	<div id="wrapper">
		<div id="top">
			<div id="header">
				<?php
				$title = "Dashboard";
				$ci =& get_instance();
				$controller = $ci->router->fetch_class();

				$resources = array(array("controller" => "dashboard", "title" => "Dashboard"),
			                      array("controller" => "users", "title" => "Users"),
			                      array("controller" => "posts", "title" => "Wall Posts"),
			                      array("controller" => "messages", "title" => "Messages"),
			                      array("controller" => "advertisements", "title" => "Advertisements"),
			                      array("controller" => "#", "title" => "Payments"),
			                      array("controller" => "testimonials", "title" => "Testimonials"),
//			                      array("controller" => "#", "title" => "Video Hints"),
			                      array("controller" => "#", "title" => "Product Packages"),
			                      array("controller" => "settings", "title" => "Settings")
         		);
				foreach($resources as $resource){
					if( $controller == strtolower($resource["controller"]) ){
						$menutitle = $resource["title"];
						break;
					}
				}
				?>
				<div id="header-text"><?php echo $menutitle; ?></div>
			</div>
			<div id="message">
				Welcome Admin!  |  <a href="#">View Site</a>  |  <a href="<?php echo site_url();?>admin/login/logout">Logout</a>
			</div>
		</div>
		<div class="clearfix"></div>
		<div id="content-wrap">
			<?php include('sidebar.php'); ?>
			<?php //$this->load->view('admin/sidebar'); ?>
			<div id="main-content">